package com.skt.exception;

public class CostumeException extends BaseException {

    public CostumeException(ErrorCode errorCode) {
        super(errorCode);
    }

    public CostumeException(int code, String message) {
        super(code, message);
    }

    public CostumeException(ErrorCode errorCode, String customMessage) {
        super(errorCode, customMessage);
    }

    // ========== 通用创建方法 ==========
    public static CostumeException of(ErrorCode errorCode) {
        return new CostumeException(errorCode);
    }

    public static CostumeException of(ErrorCode errorCode, String customMessage) {
        return new CostumeException(errorCode, customMessage);
    }

    public static CostumeException of(int code, String message) {
        return new CostumeException(code, message);
    }
}